package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.DiseaseFile;
import cn.topevery.garden.entity.query.DiseaseFileQuery;
import cn.topevery.garden.entity.vo.DiseaseFileVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;

/**
 * 病虫害附件
 *
 * @author code-generate
 * @date 2022-01-05
 */
public interface DiseaseFileDao extends BaseDao<DiseaseFile> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<DiseaseFileVO> listPage(DiseaseFileQuery query);

    DiseaseFile getEntityByColumn(String key,String value);

    List<DiseaseFile> getListByMainId(Integer mainId);

    void insert(DiseaseFile diseaseFile);

    void insertList(List<DiseaseFile> list);

    void deleteByMainId(Integer mainId, Integer userId);

}
